package com.group.service.impl;

import com.group.pojo.Friends;
import com.group.mapper.FriendsMapper;
import com.group.service.FriendsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author group
 * @since 2021-09-06
 */
@Service
public class FriendsServiceImpl implements FriendsService {

    @Autowired
    private FriendsMapper friendsMapper;

    @Override
    public List<Friends> findAllfriends(Friends friends) {
        return friendsMapper.findAllfriends(friends);
    }

    @Override
    public boolean updateFriends(Friends friends) {
        return friendsMapper.updateFriends(friends);
    }

    @Override
    public boolean deleteFriends(String friendsid[]) {
        return friendsMapper.deleteFriends(friendsid);
    }

    @Override
    public boolean addFriends(Friends friends) {
        return friendsMapper.addFriends(friends);
    }

    @Override
    public boolean updateFriendsExamine(String friends[],Integer friendsexamine) {
        return friendsMapper.updateFriendsExamine(friends,friendsexamine);
    }
}
